{"ast":null,"code":"var _jsxFileName = \"/data/messenger.client/src/components/Button/index.tsx\";\nimport React from \"react\";\nimport { Button as BaseButton } from '@mui/material';\nimport classNames from \"classnames\";\nimport styles from \"./Button.module.scss\";\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nconst Button = _ref => {\n  let {\n    text,\n    fullWidth = true,\n    callback,\n    customClassName = '',\n    disable = false\n  } = _ref;\n  if (callback) {\n    return /*#__PURE__*/_jsxDEV(BaseButton, {\n      type: \"submit\",\n      variant: \"contained\",\n      fullWidth: fullWidth,\n      onClick: callback,\n      disableElevation: true,\n      className: classNames(styles.btn, customClassName),\n      disabled: disable,\n      children: text\n    }, void 0, false, {\n      fileName: _jsxFileName,\n      lineNumber: 10,\n      columnNumber: 13\n    }, this);\n  } else {\n    return /*#__PURE__*/_jsxDEV(BaseButton, {\n      type: \"submit\",\n      variant: \"contained\",\n      fullWidth: fullWidth,\n      disableElevation: true,\n      className: classNames(styles.btn, customClassName),\n      disabled: disable,\n      children: text\n    }, void 0, false, {\n      fileName: _jsxFileName,\n      lineNumber: 24,\n      columnNumber: 13\n    }, this);\n  }\n};\n_c = Button;\nexport default Button;\nvar _c;\n$RefreshReg$(_c, \"Button\");","map":{"version":3,"names":["React","Button","BaseButton","classNames","styles","text","fullWidth","callback","customClassName","disable","btn"],"sources":["/data/messenger.client/src/components/Button/index.tsx"],"sourcesContent":["import React from \"react\";\nimport {ButtonProps} from \"../../models/props/ButtonProps\";\nimport {Button as BaseButton} from '@mui/material';\nimport classNames from \"classnames\";\nimport styles from \"./Button.module.scss\";\n\nconst Button: React.FC<ButtonProps> = ({text, fullWidth = true, callback, customClassName = '', disable = false}) => {\n    if (callback!) {\n        return (\n            <BaseButton\n                type=\"submit\"\n                variant=\"contained\"\n                fullWidth={fullWidth}\n                onClick={callback}\n                disableElevation={true}\n                className={classNames(styles.btn, customClassName)}\n                disabled={disable}\n            >\n                {text}\n            </BaseButton>\n        );\n    } else {\n        return (\n            <BaseButton\n                type=\"submit\"\n                variant=\"contained\"\n                fullWidth={fullWidth}\n                disableElevation={true}\n                className={classNames(styles.btn, customClassName)}\n                disabled={disable}\n            >\n                {text}\n            </BaseButton>\n        );\n    }\n}\n\nexport default Button;\n"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAAQC,MAAM,IAAIC,UAAU,QAAO,eAAe;AAClD,OAAOC,UAAU,MAAM,YAAY;AACnC,OAAOC,MAAM,MAAM,sBAAsB;AAAC;AAE1C,MAAMH,MAA6B,GAAG,QAA+E;EAAA,IAA9E;IAACI,IAAI;IAAEC,SAAS,GAAG,IAAI;IAAEC,QAAQ;IAAEC,eAAe,GAAG,EAAE;IAAEC,OAAO,GAAG;EAAK,CAAC;EAC5G,IAAIF,QAAQ,EAAG;IACX,oBACI,QAAC,UAAU;MACP,IAAI,EAAC,QAAQ;MACb,OAAO,EAAC,WAAW;MACnB,SAAS,EAAED,SAAU;MACrB,OAAO,EAAEC,QAAS;MAClB,gBAAgB,EAAE,IAAK;MACvB,SAAS,EAAEJ,UAAU,CAACC,MAAM,CAACM,GAAG,EAAEF,eAAe,CAAE;MACnD,QAAQ,EAAEC,OAAQ;MAAA,UAEjBJ;IAAI;MAAA;MAAA;MAAA;IAAA,QACI;EAErB,CAAC,MAAM;IACH,oBACI,QAAC,UAAU;MACP,IAAI,EAAC,QAAQ;MACb,OAAO,EAAC,WAAW;MACnB,SAAS,EAAEC,SAAU;MACrB,gBAAgB,EAAE,IAAK;MACvB,SAAS,EAAEH,UAAU,CAACC,MAAM,CAACM,GAAG,EAAEF,eAAe,CAAE;MACnD,QAAQ,EAAEC,OAAQ;MAAA,UAEjBJ;IAAI;MAAA;MAAA;MAAA;IAAA,QACI;EAErB;AACJ,CAAC;AAAA,KA7BKJ,MAA6B;AA+BnC,eAAeA,MAAM;AAAC;AAAA"},"metadata":{},"sourceType":"module"}